package edu.unr.cater.npap.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import edu.unr.cater.npap.client.proxy.PlatformUserProxy;
import edu.unr.cater.npap.client.proxy.TransportationImprovementProjectProxy;

public class TransportationImprovementProjectProxyRenderer extends ProxyRenderer<TransportationImprovementProjectProxy> {

    private static edu.unr.cater.npap.client.managed.ui.TransportationImprovementProjectProxyRenderer INSTANCE;

    protected TransportationImprovementProjectProxyRenderer() {
        super(new String[] { "projectName" });
    }

    public static edu.unr.cater.npap.client.managed.ui.TransportationImprovementProjectProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new TransportationImprovementProjectProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(TransportationImprovementProjectProxy object) {
        if (object == null) {
            return "";
        }
        return object.getProjectName() + " (" + object.getProjectName() + ")";
    }
}
